package com.songjia.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@MapperScan(basePackages = "com.songjia.springcloud.mapper")
@EnableEurekaClient // 标示为Eureka客户端，注册进EurekaServer中
@EnableCircuitBreaker // 开启断路器功能
public class DeptProvicerHystrixApplication {
	public static void main(String[] args) {
		SpringApplication.run(DeptProvicerHystrixApplication.class, args);
	}
}
